package com.example.whm.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	/*Map<String, Integer> boxs=new HashMap<String, Integer>();*/
	String user_id;
	String user_name;
	String city_area;
	String address;
	String phone;
	String contactname;
	List<Box> list;
	String order_num;
	int pay_type;//1在线支付，2货到付款
	int state; //1等待付款，2等待签收，3已完成，4已取消
	
	
	
	int num;  //temple use
	int price; //temple use
	String createtime=new Date().toLocaleString();
	
	
	
	
	
	
	
	
	public String getContactname() {
		return contactname;
	}



	public void setContactname(String contactname) {
		this.contactname = contactname;
	}



	public String getUser_name() {
		return user_name;
	}



	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}



	public String getCity_area() {
		return city_area;
	}



	public void setCity_area(String city_area) {
		this.city_area = city_area;
	}



	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}



	public String getPhone() {
		return phone;
	}



	public void setPhone(String phone) {
		this.phone = phone;
	}



	public List<Box> getList() {
		return list;
	}



	public void setList(List<Box> list) {
		this.list = list;
	}



	public int getPrice() {
		return price;
	}



	public void setPrice(int price) {
		this.price = price;
	}



	public String getUser_id() {
		return user_id;
	}



	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}






	public String getOrder_num() {
		return order_num;
	}



	public void setOrder_num(String order_num) {
		this.order_num = order_num;
	}



	public int getPay_type() {
		return pay_type;
	}



	public void setPay_type(int pay_type) {
		this.pay_type = pay_type;
	}



	public int getState() {
		return state;
	}



	public void setState(int state) {
		this.state = state;
	}





	public int getNum() {
		return num;
	}



	public void setNum(int num) {
		this.num = num;
	}



	public String getCreatetime() {
		return createtime;
	}



	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}



	
	




	public Order(String user_id, String user_name,String contactname, String city_area,
			String address, String phone, List<Box> list, int pay_type,
			int state, int num, int price) {
		super();
		this.user_id = user_id;
		this.user_name = user_name;
		this.contactname = contactname;
		this.city_area = city_area;
		this.address = address;
		this.phone = phone;
		this.list = list;
		this.pay_type = pay_type;
		this.state = state;
		this.num = num;
		this.price = price;
	}



	public Order() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
